package com.mzj.saas.commons;

import org.springframework.http.HttpStatus;

public class CustomException extends Exception {

	private static final long serialVersionUID = -5929030203833632263L;
	
	private String errCode;
	private HttpStatus httpStatus;
	
	public CustomException(String message) {
		super(message);
	}

	public CustomException(HttpStatus httpStatus, String errCode, String errMsg) {
		super(errMsg);
		this.httpStatus = httpStatus;
		this.errCode = errCode;
	}

	public String getErrCode() {
		return errCode;
	}

	public HttpStatus getHttpStatus() {
		return httpStatus;
	}
}